package com.samples;

/*
* VariableTest
* Demonstrates how to declare and access variables
*/
public class VariableTest {

	public static void main(String args[]) {
		
		// Declare an int variable
		int age;
		age = 242;
		
		System.out.println("Age = " + age);
		
		// Declare a double variable and assign a value
		double ounces = 11.2;
		System.out.println("ounces = " + ounces);
		
		// Declare some String variables
		String name = "Guinness", origin = "Ireland", brewery;
		System.out.println("name = " + name);
		System.out.println("origin = " + origin);
		brewery = "St. James Gate Brewery";
		System.out.println("brewery = " + brewery);
		
		// Assign a value of one variable to another
		int yearsOld = age;
		System.out.println("yearsOld = " + yearsOld);
		
		// Declare a boolean variable and assign a value to it
		boolean tastesGood = true;
		System.out.println("tastesGood = " + tastesGood);
	}
}